package cn.enilu.flash.bean.entity.blindbox;

import cn.enilu.flash.bean.entity.BaseEntity;
import cn.enilu.flash.bean.entity.shop.Goods;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

@Table(name = "t_blind_box_goods")
@Entity
@Data
public class BlindBoxGoods extends BaseEntity {
    @Column(name = "goods_id", nullable = false, length = 20)
    private Long goodsId;

    @Column(name = "blind_box_id", nullable = false, length = 20)
    private Long blindBoxId;

    @Column(name = "odds")
    private Long odds;

    @Column(name = "available_flag")
    private Boolean availableFlag;

//    @OneToMany(mappedBy = "id")
////    @JoinColumn(name = "goods_id")
//    private List<Goods> goodsList;
}